<h2>Expenses [by Category]</h2>

<% @categories.each do |category| -%>
<h3><%=h category.name %>:</h3>
<%= render :partial => 'expense', :collection => category.expenses %>
<% end -%>
<br />

<%= link_to 'New expense', new_expense_path %>
